package com.dmm.user.service.impl;

import com.dmm.user.entity.Association;
import com.dmm.user.mapper.AssociationMapper;
import com.dmm.user.service.AssociationService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author com/dmm
 * @since 2023-05-15
 */
@Service
public class AssociationServiceImpl extends ServiceImpl<AssociationMapper, Association> implements AssociationService {

    @Resource
    AssociationMapper associationMapper;



    //加入关联表信息
    @Override
    public void addform(String endemail, String startemail) {
        Association association=new Association();
        association.setEndEmail(endemail);
        association.setStartEmail(startemail);
        associationMapper.insert(association);
    }
}
